package com.erclab.internal.xpresso.reportelements;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.erclab.internal.xpresso.reports.Report;

public class PrintMysqlDateTime extends PrintMysqlDate {

	public String toHTML(String columnValue, String uniqueKeyValue,	Report theReport) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date blogDate = null;
		try {
			blogDate = sdf.parse(columnValue);
		} catch (ParseException e) {
			e.printStackTrace();
		}
		SimpleDateFormat output = new SimpleDateFormat("d/MM/yyyy HH:mm:ss");
		return output.format(blogDate); 
	}
	
}
